<div class="modal-header" id="scope">
	<h3 class="modal-title" ng-if="param.type == 'insert'">新增</h3>
	<h3 class="modal-title" ng-if="param.type == 'update'">修改</h3>
</div>
<div class="modal-body">
	<form name="myForm" class="form-horizontal form-validation">
		<div class="panel panel-default">
			<div class="panel-body">
				<div class="form-group" ng-if="param.type=='update'">
					<label class="col-sm-3 control-label">
						<span style="color: red; text-align: center;">* &nbsp</span>编号：</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" ng-model="param.data.code" readonly="true" />
					</div>
					<p>不可修改。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">
						<span style="color: red; text-align: center;">* &nbsp</span>姓名：</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" placeholder="姓名" ng-model="param.data.name" ng-maxlength="100" required>
					</div>
					<p>必填。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">
						<span style="color: red; text-align: center;">* &nbsp</span>密码：</label>
					<div class="col-sm-5">
						<input type="password" class="form-control" placeholder="密码" ng-model="password" ng-maxlength="22" />
					</div>
					<p>字母或数字任意组合，长度在6-22位之间。例：123456a</p>
				</div>
				<div class="form-group" ng-show="param.type=='insert'">
					<label class="col-sm-3 control-label">
						<span style="color: red; text-align: center;">* &nbsp</span>确认密码：</label>
					<div class="col-sm-5">
						<input type="password" class="form-control" placeholder="确认密码" ng-model="newpassword" ng-maxlength="22" />
					</div>
					<p>两次输入的密码必须一致。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">
						<span style="color: red; text-align: center;">* &nbsp</span>手机：</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" placeholder="手机" ng-model="param.data.phone" ng-pattern="/^[]|(1[3|4|5|7|8][0-9]\d{8})$/" required
						/>
					</div>
					<p>11位手机号，唯一不可重复。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">
						<span style="color: red; text-align: center;">* &nbsp</span>驾驶证号码：</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" placeholder="驾照" ng-model="param.data.license" ng-maxlength="30" required>
					</div>
					<p>必填。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">
						<span style="color: red; text-align: center;">* &nbsp</span>所属单位：</label>
					<div class="col-sm-5">
						<ui-select ng-model="orglist.selected" theme="bootstrap">
							<ui-select-match placeholder="所属单位">{{$select.selected.name}}</ui-select-match>
							<ui-select-choices repeat="org in orglist | propsFilter:{name: $select.search}">
								<span ng-bind-html="org.name | highlight: $select.search"></span>
							</ui-select-choices>
						</ui-select>
					</div>
					<p>司机所属的单位选择。</p>
				</div>
				<div class="form-group">
					<label class="col-sm-3 control-label">家庭住址：</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" placeholder="家庭住址" ng-model="param.data.address" ng-maxlength="100">
					</div>
					<p>选填。</p>
				</div>
				<div class="form-group">
					<label class="col-md-3 control-label">驾照照片上传：</label>
					<div class="col-md-5" style="margin-right: 20px">
						<input type="file" class="form-control" placeholder="选择图片文件" ng-value="fileToUpload" value="{{fileToUpload}}" file-model="fileToUpload"
						 set-file-data="fileToUpload = value;">
					</div>
				</div>
				<div class="form-group" ng-show="flag">
					<label class="col-md-3 control-label">当前照片预览：</label>
					<div class="col-md-5" ng-show="param.data.licensePhoto!=null">
						<div class="bg-white wrapper-sm b-a">
							<div class="bg-light">
								<img ng-src="{{param.data.licensePhoto}}" style="width: 100%;height: 100%" />
							</div>
						</div>
					</div>
					<div class="col-md-5" ng-show="param.data.licensePhoto==null">
						<div style="margin-top: 7px">当前无照片预览！</div>
					</div>
				</div>
			</div>
			<footer class="panel-footer text-right bg-light lter">
				<button class="btn btn-default" type="button" ng-click="cancel()">取消</button>
				<button type="submit" class="btn btn-success" ng-click="ok()">提交</button>
			</footer>
		</div>
	</form>
</div>